home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xwall / Xreset.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1995-06-20  |  189b  |  10 lines

  1. #!/bin/sh
  2. #
  3. # Destroy authorization.
  4. xauth -f /.Xauthority remove $DISPLAY
  5. host=`echo $DISPLAY | sed "s/:.*/X/"`
  6. if [ $host = "X" ]
  7. then
  8.     xauth -f /.Xauthority remove `hostname`$DISPLAY
  9. fi
  10.